home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17975 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!willen.demon.co.uk
  2. From: Adrian Parker <adrian@willen.demon.co.uk>
  3. Newsgroups: comp.unix.questions,comp.lang.c,comp.lang.c++
  4. Subject: Re: Calling COBOL from C/C++
  5. Date: Thu, 18 Apr 96 08:04:55 GMT
  6. Organization: Quondam Ltd
  7. Message-ID: <829814695snz@willen.demon.co.uk>
  8. References: <317545E2.1DA0@interramp.com>
  9. Reply-To: adrian@willen.demon.co.uk
  10. X-NNTP-Posting-Host: willen.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Mail2News-Path: willen.demon.co.uk
  13.  
  14. In article <317545E2.1DA0@interramp.com>
  15.            zimmerdc@interramp.com "Daniel C. Zimmerman" writes:
  16.  
  17. > We are trying to call a Microfocus COBOL program from a C/C++ program.  
  18. > We would like to receive extensive error messages (codes) from the COBOL 
  19. > program.  One way to do this is to use the "system" call, but it does 
  20. > not give us the capability of getting anything more than "success" or 
  21. > "failure."  What are some other ways to do this?
  22.  
  23. Try asking in comp.lang.cobol they will be able to tell you for sure.
  24.  
  25. You don't need to use "system", you can call your C routine directly
  26. with a CALL statement. 
  27.  
  28. I think, that in your cobol prog you pass a variable by reference,
  29. to the C prog, which can then change the variable, which will then
  30. be available to the cobol program when you return...  it's been a 
  31. long time since I had to do this.
  32.  
  33. adrian
  34. -- 
  35. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  36. :: Adrian Parker  adrian@willen.demon.co.uk  Quondam Ltd ::
  37. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  38.